[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FPUT IEXP,SEXP[,SEXP...]
  -or-
FPUTLN IEXP[,SEXP[,SEXP...]

 Function
  Put (write) a line or lines to an open file without or with a carriage
  return/line feed appended.

 Syntax
  FPUT chan,exp[,exp]

   chan  - An integer expression with the channel to write to (0 through 7).
   exp   - An expression of any type to evaluate and write to chan.
   NO carriage return/line feed will be appended.

  FPUTLN chan,exp[,exp]
  -or-
  FPUTLN chan[,exp[,exp]]

   chan  - An integer expression with the channel to write to (0 through 7).
   exp   - An expression of any type to evaluate and write to chan.
   A carriage return/line feed will be appended.

 Remarks
  These statements will evalutate zero, one or more expressions of any
  type and write the results to the specified channel number.  The FPUTLN
  statement will append a carriage return/line feed sequence to the end
  of the expressions; FPUT will not.  Note that at least one expression
  must be specified for FPUT, unlike the FPUTLN statement which need not
  have any arguments passed to it other than the channel number.

 Examples
  FAPPEND 1,"FILE.DAT",O_WR,S_DB
  FPUT 1,U_NAME()," ",DATE()
  FPUTLN 1," ",TIME()," ",CURSEC()
  FPUT 1,"Logged!"
  FPUTLN 1
  FPUTLN 1,"Have a nice"+" day!"
  FCLOSE 1

See Also: FGET FPUTPAD
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson